package edu.whu.puppygo.service;

import edu.whu.puppygo.dto.PetMatterDto;
import edu.whu.puppygo.entity.PetMatter;
import org.springframework.data.domain.Pageable;

import java.time.LocalDate;
import java.util.List;

/**
 * @Author xinjiezhuang
 * @Date 2023-11-20
 */
public interface PetMatterService {


    // 添加PetMatter
    PetMatter addPetMatter(PetMatterDto petMatterDto);

    void finishPetMatter(Long petMatterId);

    // 修改PetMatter
    PetMatter updatePetMatter(PetMatter petMatter);

    // 根据用户ID获取所有的PetMatter
    List<PetMatter> getAllPetMattersByUserId(Long userId, Pageable pageable);


    //返回今天应该执行的PetMatter
    List<PetMatter> getTodayPetMattersByUserId(Long userId, Pageable pageable);

    // 根据用户ID和日期获取所有的PetMatter
    List<PetMatter> findPetMattersByUserIdAndDate(Long userId, LocalDate date);
}
